package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_product")
public class Product {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;
    private Double price;
    private String type;

    public Product(Integer id, String type, Double price, String name) {
        this.id = id;
        this.type = type;
        this.price = price;
        this.name = name;
    }
    public Product() {
    }
}
